import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    num:88,//练习的数字
    isLogin:false,//是否登录。false为 未登录
    userInfo:{},//用户的个人信息
  },
  mutations: {
    modifyLoginType(state,payload){
      console.log(state)
      console.log(payload)
      state.isLogin=payload.isLogin;
      state.userInfo=payload.userInfo;

    }
  },
  actions: {
  },
  modules: {
  }
})
